<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JSON</title>
</head>
<body>
<script !src="">
    "use strict";
    let user = {
        name:"zsh",
        age:3,
        sex:"man"
    };

    //JSON 字符串格式
    let data = JSON.stringify(user);

    //JSON 转 对象
    let user2 = JSON.parse(data);

</script>
</body>
</html>